
============================================================
        

============================================================

  :

       

============================================================


  :

           

  


============================================================

 :


   images  


============================================================


     product     

  3.5.0 

============================================================


  arcade.php   :


	($hook = vBulletinHook::fetch_hook('arcade_main_complete')) ? eval($hook) : false;


============================================================

  :

	// Arcade King(s)
	if ($vbulletin->options['dispchamps'] == '1')
	{
		$mosthigh = 0;
		$mosthighscores = $db->query_read("SELECT games.highscorerid, user.username, user.userid FROM " . TABLE_PREFIX . "arcade_games AS games LEFT JOIN " . TABLE_PREFIX . "user AS user ON user.userid = games.highscorerid WHERE user.userid IS NOT NULL");
		while ($besthigh = $db->fetch_array($mosthighscores))
		{
			$mh[$besthigh[highscorerid]]['count'] = $mh[$besthigh[highscorerid]]['count'] + 1;		
			if ($mh[$besthigh[highscorerid]]['count'] < $mosthigh)
			{
				// Do nothing..
			} else {
				if ($mh[$besthigh[highscorerid]]['count'] > $mosthigh)
				{
					$mosthigh = $mh[$besthigh[highscorerid]]['count'];
					$mhsuser = $besthigh['highscorerid'];
					$mhsarray = '';
					$mhsusername = $besthigh['username'];
				} else { 
					$mhsarray .= "<a href=" . $vbulletin->options['bburl'] . "/member.php?u=" . $mhsuser . ">" . $mhsusername . "</a> & <a href=" . $vbulletin->options['bburl'] . "/member.php?u=" . $besthigh['highscorerid'] . ">" . $besthigh[username]. "</a>";
					$mhsusername = '';
					$mhsuser = '';
				}	
			}
		}
		$db->free_result($mosthighscores);
	}


============================================================

     

============================================================

  arcade_main   :

<table cellpadding="0" cellspacing="0" align="center"><tr><td>
	<div id="tabs" class="alt1">
		<table cellpadding="2" cellspacing="0" style="margin: 0px 2px 0px 2px"><tr>
				$gamecategories
		</tr></table>
	</div>
</td></tr></table>

============================================================

  :

<if condition="$vboptions['dispchamps'] == '1'">
<!-- arcade king(s) -->
<if condition="$mhsusername">

			<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="margin-top:3px">
			<tr align="center">
				<td class="thead" valign="middle" width="30%" nowrap="nowrap"><img src="$vboptions[arcadeimages]/king1.gif" alt="$vbphrase[arcade_champ]" class="inlineimg" border="0" /> $vbphrase[arcade_champ]:</td>
				<td class="alt1" valign="middle" width="70%"><span class="smallfont"><phrase 1="$mhsusername" 2="$mosthigh" 3="$mhsuser">$vbphrase[x_with_y_titles]</phrase></span></td>
			</tr>
			</table>

<br />
</if>

<if condition="$mhsarray">

			<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="margin-top:3px">
			<tr align="center">
				<td class="thead" valign="middle" width="30%" nowrap="nowrap"><img src="$vboptions[arcadeimages]/king1.gif" alt="$vbphrase[arcade_champs]" class="inlineimg" border="0" /> $vbphrase[arcade_champs]:</td>
				<td class="alt1" valign="middle" width="70%"><span class="smallfont"><phrase 1="$mhsarray" 2="$mosthigh" 3="$mhsuser">$vbphrase[x_with_y_titles_array]</phrase></span></td>
			</tr>
			</table>

<br />
</if>
<!-- / arcade king(s) -->
<else />
<br />
</if>

============================================================

  

 
   

http://mwadah.com

mrs@mwadah.com

============================================================